<?php
session_start();
if( session_unregister('loginid') == true && session_unregister('username')==true ) {
	session_destroy();
	header('Location: /');
  } else {
   unset($_SESSION['loginid']);
   unset($_SESSION['username']);
   unset($_SESSION['usertype']);
   session_destroy();
   header('Location: ./');
}
?>
